package edu.ou.herbarium.service;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String username;
	private String password;
	private Set<Specimen> specimens = new HashSet<Specimen>(0);
	private Set<UserAuthorityMap> userAuthorityMaps = new HashSet<UserAuthorityMap>(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String username, String password) {
		this.username = username;
		this.password = password;
	}

	/** full constructor */
	public User(String username, String password, Set<Specimen> specimens,
			Set<UserAuthorityMap> userAuthorityMaps) {
		this.username = username;
		this.password = password;
		this.specimens = specimens;
		this.userAuthorityMaps = userAuthorityMaps;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set<Specimen> getSpecimens() {
		return this.specimens;
	}

	public void setSpecimens(Set<Specimen> specimens) {
		this.specimens = specimens;
	}

	public Set<UserAuthorityMap> getUserAuthorityMaps() {
		return this.userAuthorityMaps;
	}

	public void setUserAuthorityMaps(Set<UserAuthorityMap> userAuthorityMaps) {
		this.userAuthorityMaps = userAuthorityMaps;
	}

}